package org.linlinjava.litemall.admin.vo.goodsstatistics;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.linlinjava.litemall.admin.util.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Accessors(chain = true)
@ApiModel("商品统计条件")
public class GoodsStatisticReqVO {

    @ApiModelProperty("当前页")
    private Integer page;

    @ApiModelProperty("数量")
    private Integer limit;

    @ApiModelProperty("商品分类id")
    private Long categoryl3;

    @ApiModelProperty("商品ID")
    private Integer goodsId;

    @ApiModelProperty("订单来源：1:手机app下单,2:门店下单,3:官网商城,4:订阅")
    private Integer orderSource;

    @ApiModelProperty("商品上下架")
    private Integer isOnSale;

    @ApiModelProperty("支付方式(1:现金支付,2:礼物卡支付,3:Paypal支付,4:余额支付,5:Clover支付,6:积分兑换)")
    private Integer payType;

    @ApiModelProperty("区域")
    private List<Integer> regionIds;

    @ApiModelProperty("时间")
    @DateTimeFormat(pattern = DateUtil.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime[] dateRange;

    @ApiModelProperty("门店")
    private Integer shopId;
}
